package com.dbn.webmagic.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dbn.webmagic.dao.LincenseDao;
import com.dbn.webmagic.entity.Lincense;
import com.dbn.webmagic.service.LincenseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("lincenseService")
public class LincenseServiceImpl extends ServiceImpl<LincenseDao, Lincense> implements LincenseService {
    @Autowired
    private LincenseDao lincenseDao;
    @Override
    public int add(Lincense lincense) {
        return lincenseDao.insert(lincense);
    }

    @Override
    public int selectone(QueryWrapper<Lincense> queryWrapper) {
        return lincenseDao.selectCount(queryWrapper);
    }
}
